package com.g001.enums;

public enum CharacterStatus {
	
	IDLE(0,0,true,200,true,true), 
	ATTACK_1(0,1,true,800,true,false), 
	ATTACK_2(1,1,true,800,true,false), 
	ATTACK_3(2,1,true,800,true,false), 
	ATTACK_4(3,1,true,800,true,false), 
	HURT_LOW(0,2,true,800,true,false), 
	HURT_MED(1,2,true,800,true,false), 
	HURT_HIGH(3,2,true,800,true,false), 
	DEAD(2,2,true,800,true,false);
	
	public final static int WIDTH = 128;
	public final static int HEIGTH = 128;
	public final static int NB_SPRITE_PER_LINE = 4;
	public final static int LAST_SPRITE_INDEX_PER_LINE = NB_SPRITE_PER_LINE-1;
	
	private int i;
	private int j;
	private boolean animated; // take all the line
	private boolean horizontalScan;
	private int duration;
	private boolean autoUpdate;
	
	CharacterStatus(int i, int j, boolean horizontalScan,  int duration, boolean autoUpdate, boolean animated){
		this.i = i;
		this.j = j;
		this.horizontalScan = horizontalScan;
		this.duration = duration;
		this.autoUpdate = autoUpdate;
		this.animated = animated;
	}

	public boolean isAnimated() {
		return animated;
	}

	public void setAnimated(boolean animated) {
		this.animated = animated;
	}

	public boolean isHorizontalScan() {
		return horizontalScan;
	}

	public void setHorizontalScan(boolean horizontalScan) {
		this.horizontalScan = horizontalScan;
	}

	public int getDuration() {
		return duration;
	}

	public void setDuration(int duration) {
		this.duration = duration;
	}

	public boolean isAutoUpdate() {
		return autoUpdate;
	}

	public void setAutoUpdate(boolean autoUpdate) {
		this.autoUpdate = autoUpdate;
	}

	public int getI() {
		return i;
	}

	public void setI(int i) {
		this.i = i;
	}

	public int getJ() {
		return j;
	}

	public void setJ(int j) {
		this.j = j;
	}
	

}
